|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
PER.rover.Filter
Filter is used to specify the type of FileFilter for a JFileChooser.
Field Summary | |
static int |
CALIBRATION_FILTER
Filter for cal files. |
static int |
IMAGE_FILTER
Filter for gif, jpg, jpeg, tif, tiff, or png files. |
static int |
JPG_FILTER
Filter for jpg or jpeg files. |
static int |
SCAN_FILTER
Filter for scan files. |
static int |
TEXT_FILTER
Filter for txt files. |
Constructor Summary | |
Filter(int type)
Creates of new filter of type type . |
Method Summary | |
boolean |
accept(java.io.File f)
Accepts all directories, and accepts files based on the filter type. |
java.lang.String |
getDescription()
Returns the description of this filter. |
static java.lang.String |
getExtension(java.io.File f)
Gets the extension of a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int IMAGE_FILTER
public static final int TEXT_FILTER
public static final int CALIBRATION_FILTER
public static final int SCAN_FILTER
public static final int JPG_FILTER
Constructor Detail |
public Filter(int type)
type
.
Method Detail |
public boolean accept(java.io.File f)
public java.lang.String getDescription()
public static java.lang.String getExtension(java.io.File f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |